// @ts-ignore
/* eslint-disable */


import { posterRequest} from "@/utils/HttpRequest";


export async function findByPageList(params?: any) {
  //SwaggerResources


  return posterRequest<API.BaseArrayDataResult < any>>(
    "findByPageList", {
      method: "GET", params: {...params}
    } )


}

export async function findByDataList(params?: any) {
  //SwaggerResources


  return posterRequest<API.BaseArrayDataResult < any>>(
    "findByDataList", {
      method: "GET", params: {...params}
    } )


}

export  function posterRegesterQrcode(userId: number) {
  //SwaggerResources


  return posterRequest<API.BaseDataResult < any>>(
    "regesterQrcode", {
      method: "GET", params: {userId:userId}
    } )


}

export async function edit(params: API.Goods) {
  return posterRequest<API.BaseResult> ( "edit", {
    method: "POST",
    data: params
  } )
}
export async function editKeys(params: API.Goods) {
  return posterRequest<API.BaseResult> ( "editKeys", {
    method: "POST",
    data: params
  } )
}


//posterEdit
export async function posterEdit(params: any) {
  return posterRequest<API.BaseResult> ( "posterEdit", {
    method: "POST",
    data: params
  } )
}
export async function posterByDeleteImage(id: any) {
  return posterRequest<API.BaseResult> ( "byDeleteImage", {
    method: "POST",
    data: {id:id}
  } )
}



export async function findByDataImageList(id?: number) {
  //SwaggerResources


  return posterRequest<API.BaseArrayDataResult < any>>(
    "findByDataImageList", {
      method: "GET", params: {id:id}
    } )


}



